//**************************************************************************
//  Text1.java    Author:20172330
// The random number between (-10 to 10)
// The binarry and hexadecimal number of random Number.
//**************************************************************************
import java.util.*;
import java.text.*;

public class text
{
   public static void main(String []args)
   {
   Random generator = new Random();

   int PseudoNumber;
   PseudoNumber = generator.nextInt(20) - 10;

   System.out.println("From -10 to 10:" + PseudoNumber);
   String num1 = Integer.toHexString(PseudoNumber);
   System.out.println("Hexadecimal number: " + num1);
   
   String num2 = Integer.toBinaryString(PseudoNumber);
   System.out.println("Binary number: " + num2);
   }
}
